package com.zjhn.ds.param;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * @BelongsProject: ds_jlw
 * @BelongsPackage: com.zjhn.ds.param
 * @Author: sxt
 * @CreateTime: 2023-10-10  15:55
 * @Description:
 * @Version: 1.0
 */
@Data
public class ReportParam {

    @ApiModelProperty("刷卡id")
    @JsonProperty("swipe_card_id")
    @NotBlank(message = "刷卡id不能为空")
    private String swipeCardId;

    @ApiModelProperty(value = "报工数")
    @JsonProperty("book_job_qty")
    @NotNull(message = "报工数不能为空")
    private BigDecimal bookJobQty;

    @ApiModelProperty(value = "报工人工号")
    @JsonProperty("book_job_user")
    @NotBlank(message = "报工人不能为空")
    private String bookJobUser;

    @ApiModelProperty(value = "批次号")
    private String batch;
}
